﻿#pragma once
#include "afxdialogex.h"


// Warn 对话框

class Warn : public CDialogEx
{
	DECLARE_DYNAMIC(Warn)

public:
	Warn(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~Warn();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_Warn };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

private:
	CMap<int, int, CString, CString> warnMap;
	int lastError[4] = { 0,0,0,0 };
	CString errorInf[4];
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedOpenwarn();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	bool GetBitValue(int errorNum, USHORT bitPos);
};
